package cn.edu.glut.test;

public class Main {
    public static void main(String[] args) {
        int number = 10;
        System.out.println("before enlargeNumber: " + number);
        enlargeNumber(number);
        System.out.println("after enlargeNumber: " + number);

        Circle circle = new Circle();
        circle.setRadius(10);
        System.out.println("before enlargeObject: "
                + circle.getRadius());
        enlargeObject(circle);
        System.out.println("after enlargeObject: "
                + circle.getRadius());
    }
    private static void enlargeNumber(int number) {
        number *= 2;
    }

    private static void enlargeObject(Circle circle) {
        int radius = circle.getRadius();
        radius *= 2;
        circle.setRadius(radius);
    }


}
